#include "Task.h"
#include "AutoLock.h"

using namespace yazi::thread;


Task::Task() : m_data(NULL), m_mutex() {}

Task::Task(void* data) : m_data(data), m_mutex() {}

Task::~Task(){

}

void* Task::get_data(){
    AutoLock lock(&m_mutex);
    return m_data;
}

void Task::set_data(void* data){
    AutoLock lock(&m_mutex);
    m_data = data;
}


